﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using eProject_SEM3_SecurityServices.DataAccess;
using eProject_SEM3_SecurityServices.ObjectClass;

namespace eProject_SEM3_SecurityServices.Bussiness
{
    public class BDepartment
    {
         DDepartment ddepartment = null;

         public BDepartment()
        {
            ddepartment = new DDepartment();
        }

        public List<ODepartment> getDepartmentList()
        {
            
            return ddepartment.GetDepartmentList();
        }
        //@depId int
        public ODepartment GetDepartmentDetails(int depID)
        {
            return ddepartment.GetDepartmentDetails(depID);
        }
        /*
         * @DepId int,
            @Name nvarchar(250),
            @Description nvarchar(250),
            @Function nvarchar(250)
         */
        public bool UpdateDepartment(ODepartment department)
        {
            return ddepartment.UpdateDepartment(department);
        }
        /*@DepId int,
            @Name nvarchar(250),
            @Description nvarchar(250),
            @Function nvarchar(250)*/
        public bool AddDepartment(ODepartment department)
        {
            return ddepartment.AddNewDepartment(department);
        }
        //@depId int
        public bool DeleteDepartment(int depId)
        {
            return ddepartment.DeleteDepartment(depId);
        }
        
    }
}